home *** CD-ROM | disk | FTP | other *** search
- Path: lion.de!not-for-mail
- From: urbain@lucky.lion.de (Juri Urbainczyk)
- Newsgroups: comp.unix.solaris,comp.unix.programmer,comp.lang.c
- Subject: Re: inline code
- Date: 1 Feb 1996 14:15:55 +0100
- Organization: Lion GmbH, Bochum, Germany
- Distribution: inet
- Message-ID: <4eqeeb$712@lucky.lion.de>
- References: <lbecker-3101961334210001@206.161.148.20>
- NNTP-Posting-Host: lucky.lion.de
-
-
- Hello.
-
- In article <lbecker-3101961334210001@206.161.148.20>, lbecker@avtec.com (Lynn Becker) writes:
- |> Hi,
- |> Does the gcc accept this? Here is a snippet of the code I am using.
- |>
- |> inline double mathFindVectorMag( CARTESIAN_STRUCT * pVector )
- |> {
- |> return sqrt (pVector->X * pVector->X + pVector->Y * pVector->Y +
- |> pVector->Z * pVector->Z);
- |> }
- |>
- |> The sun compiler gives me an error
- |>
-
- I believe, the gcc can compile it. Make sure you disabled the
- ANSI-Option. It's just word of mouth...
-
- -J-
-